package cn.lanqiao.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.lanqiao.entity.Paper_manage;

/**
 * 题库管理模块
 * @author yejun
 */

@Repository
public interface Paper_manageMapper {

	//展示所有数据
	public List<Paper_manage> listAllPaper();
	//分页
	public List<Paper_manage> PaperPages( Map<String,Object> map );
	//获取总记录数
	public int count( String  searchkey );
	//详情查看
	public Paper_manage getPaper(Integer paperId);
	//删除
	public int delete(Integer paperId);
	//修改
	public int update(Paper_manage paper);
	//添加
	public int insert(Paper_manage paper);
	//查看添加详情
	public Paper_manage getInsertPaper(Paper_manage paper);
	//根据试卷科目获取试卷信息
	public List<Paper_manage> listBySubject( String subject );
	
}
